var str="abcdefg"
str[1..3] = "XX"
echo str

var arr = @[10,20,30,40,50,60]
arr[1..3]=[200,300]
echo arr

arr[^1..^1]=[99]
arr[^3..^2] = @[0,0,0,0]
echo arr
